<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="/shop/E-shop/Public/css/bootstrap.css">
</head>
<body>
	<div>
		<a href="<?php echo U('add');?>">
	      	<h2>
	      		<span class="glyphicon glyphicon-plus-sign"></span>
	      	    添加新信息
	      	</h2>
	    </a>
	</div>
	<div class="table-responsive">
		<table class="table table-striped table-bordered table-hover table-condensed text-center">
			<thead>
				<tr>
					<th class="text-center">分类ID</th>
					<th class="text-center">分类名称</th>
					<th class="text-center">上级分类ID</th>
					<th class="text-center">是否显示在导航栏</th>
					<th class="text-center">分类页标题</th>
					<th class="text-center">分类页关键词</th>
					<th class="text-center">分类页描述</th>
					<th class="text-center">修改/删除</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tab): $mod = ($i % 2 );++$i;?><tr>
						<td><?php echo ($tab["cid"]); ?></td>
						<td><?php echo ($tab["cname"]); ?></td>
						<td><?php echo ($tab["cpid"]); ?></td>
						<td><?php echo ($tab["cstatus"]); ?></td>
						<td><?php echo ($tab["ctitle"]); ?></td>
						<td><?php echo ($tab["ckeyword"]); ?></td>
						<td><?php echo ($tab["cdescription"]); ?></td>
						<td>
							<a href="<?php echo U('save');?>?cid=<?php echo ($tab["cid"]); ?>">[修改]</a>
							<a href="<?php echo U('cancel');?>?cid=<?php echo ($tab["cid"]); ?>" onclick="return confirm('确定将此记录删除?')">[删除]</a>
						</td>
					</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table>
		<div class="result page text-center"><h4><?php echo ($page); ?></h4></div>
	</div>
</body>
</html>